<?php
namespace app\admin\validate;

use think\Validate;

class GameList extends Validate
{
    protected $rule = [
        'name'            => 'require|unique:gamelist',
    ];

    protected $message = [
        'name.require'            => '请输入游戏名称',
        'name.unique'             => '游戏名称已存在',
        'api_login_url.require'   => '请输入登录地址',
        'api_pay_url.require'     => '请输入支付通知地址',
    ];
}